import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
import About from '@/pages/about/index.vue'
import Detail from '@/pages/detail/index.vue'
const routes: RouteRecordRaw[] = [
    {
        path: '/',
        name: 'Home',
        redirect: '/home'
    },
    {
        path: '/about',
        name: 'About',
        component: About
    },
    {
        path: '/detail',
        name: 'Detail',
        component: Detail
    }
];
export default createRouter({
    history: createWebHashHistory(),
    routes
});
